package org.nanotek.tika;

import java.util.Date;
import java.util.Set;

import org.nanotek.Base;
import org.nanotek.StringKong;
import org.nanotek.cms.domain.lucene.config.Index;

import com.sun.syndication.feed.atom.Link;

@SuppressWarnings("serial")
public class MediaDetail extends StringKong implements Base<String>{

	private String location;
	private String contentType;
	private Long size;
	private Date dateUpdate;
	private Character readable;
	private Link referenceLink;
	private Link originLink;
	private Set<Index> indexes;
	private String tikaStringContent;
	
	public MediaDetail() {
		super(Long.toString(System.currentTimeMillis()));
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public String getContentType() {
		return contentType;
	}

	public void setContentType(String contentType) {
		this.contentType = contentType;
	}

	public Long getSize() {
		return size;
	}

	public void setSize(Long size) {
		this.size = size;
	}


	public Date getDateUpdate() {
		return dateUpdate;
	}

	public void setDateUpdate(Date dateUpdate) {
		this.dateUpdate = dateUpdate;
	}

	public Character getReadable() {
		return readable;
	}

	public void setReadable(Character readable) {
		this.readable = readable;
	}
	
	public Link getReferenceLink() {
		return referenceLink;
	}

	public void setReferenceLink(Link referenceLink) {
		this.referenceLink = referenceLink;
	}

	public Link getOriginLink() {
		return originLink;
	}

	public void setOriginLink(Link originLink) {
		this.originLink = originLink;
	}

	public Set<Index> getIndexes() {
		return indexes;
	}

	public void setIndexes(Set<Index> indexes) {
		this.indexes = indexes;
	}
	

	@Override
	public String toString() {
		return "MediaDetails [location=" + location + ", contentType="
				+ contentType + ", size=" + size + ", dateUpdate=" + dateUpdate
				+ ", readable=" + readable + "]";
	}

	public String getTikaStringContent() {
		return tikaStringContent;
	}

	public void setTikaStringContent(String tikaStringContent) {
		this.tikaStringContent = tikaStringContent;
	}
}
